package pack0916;

// 练习3：求出100 – 1000之内的对称数。
public class DemoF {
    public static void main(String[] args) {
        int number = 100;
        do {
            int gewei = number % 10;
            int baiwei = number / 100;
            if (gewei == baiwei) {
                System.out.println(number + "是对称数！");
            }
            number++;
        } while (number < 1000);
    }
}